#ifndef PACKETDISPLAYWIDGET_H
#define PACKETDISPLAYWIDGET_H

#include <QtGui/QSplitter>

#include "Component/Displayer/PacketTreeModel.h"
#include "utilities/utilities.h"


class QTreeView;

class PacketDisplayWidget : public QSplitter
{
	Q_OBJECT

public:
	PacketDisplayWidget(QWidget *parent,PacketPtr p);
	~PacketDisplayWidget();

	public slots:
		void setTreeSelection(const int Begin,const int Length);
private:
	
	PacketTreeModel *TreeModel;
	QTreeView *treeview;

//	Ui::PacketHeadManClass ui;
};

class PacketDisplayDialog : public QDialog
{
public:
	PacketDisplayDialog(QWidget* par,PacketPtr ptr);
	QSize sizeHint() const {
		return m_Child->size();
	}
private:
	PacketDisplayWidget* m_Child;
};


#endif 